<?php
use Faker\Generator as Faker;
use Illuminate\Http\UploadedFile;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\Category::class, function (Faker $faker) {

    return [
        'name'        => $faker->name,
        'const'       => $faker->name,
        'parent_id'   => 0,
        'level'       => $faker->numberBetween(1, 1230),
        'priority'    => $faker->numberBetween(0, 1230),
        'has_asset'   => $faker->numberBetween(0, 1),
        'icon_active' => UploadedFile::fake()->create('icon_active'),
        'icon'        => UploadedFile::fake()->create('icon'),
    ];
});
